/*
 * event.java
 *
 * Created on March 21, 2006, 8:33 AM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

/**
 *
 * @author Sujal Bista
 */
public class event 
{
    private String eventName;
    //private int athleteCount;
    //private athlete athletes[];


    /*
    public static boolean isBarehand(String s)
    {
        return s.toUpperCase().equals("CHANGQUAN") ||
               s.toUpperCase().equals("NANQUAN") ||
                s.toUpperCase().equals("TAIJIQUAN");
    }
    
    public static boolean isShortWeapon(String s)
    {
        return  s.toUpperCase().equals("STRAIGHTSWORD") ||
                s.toUpperCase().equals("BROADSWORD") ||
                s.toUpperCase().equals("SOUTHERN BROADSWORD") ||
                s.toUpperCase().equals("TAIJI SWORD");
    }
    
    public static boolean isLongWeapon(String s)
    {
        return  s.toUpperCase().equals("STAFF") ||
                s.toUpperCase().equals("SPEAR") ||
                s.toUpperCase().equals("SOUTHERN STAFF");
    }
     */
    
    /** Creates a new instance of event */
    public event() 
    {
        //athleteCount=0;
    }

    /*
    public int getCount()
    {
        return athleteCount;
    }
    
    public void setCount(int count)
    {
        athleteCount=count;
    }*/
    
    public void setevent(String name)
    {
        eventName=name;
    }
    
    public String getevent()
    {
        return eventName;
    }
    /*
    public athlete getAthlete(int index)
    {
        return  athletes[index];        
    }
    
    public void setAthletes(int athleteCount,athlete athletes[])
    {
        this.athleteCount=athleteCount;
        this.athletes=new athlete[ this.athleteCount];        
        for(int i=0;i<athleteCount;i++)
        {
            this.athletes[i]=athletes[i];
        }
    }

    /*
    public static String getPrefix(String eventName)
    {
        if(eventName.equalsIgnoreCase("Changquan"))
            return "Changquan_";
        if(eventName.equalsIgnoreCase("Nanquan"))
            return "Nanquan_";
                
        if(eventName.equalsIgnoreCase("Straightsword"))
            return "Straightsword_";
        if(eventName.equalsIgnoreCase("Broadsword"))
            return "Broadsword_";
        if(eventName.equalsIgnoreCase("Southern Broadsword"))
            return "Southern_Broadsword_";
                
        if(eventName.equalsIgnoreCase("Staff"))
            return "Staff_";
        if(eventName.equalsIgnoreCase("Spear"))
            return "Spear_";
        if(eventName.equalsIgnoreCase("Southern Staff"))
            return "Southern_Staff_";
                
        if(eventName.equalsIgnoreCase("Other Barehand"))
            return "Other_Barehand_";
        if(eventName.equalsIgnoreCase("Other Weapon"))
            return "Other_Weapon_";
                
        if(eventName.equalsIgnoreCase("Group Set"))
            return "Group_Set_";
                
        if(eventName.equalsIgnoreCase("Sparring Set"))
            return "Sparring_Set_";
                
        if(eventName.equalsIgnoreCase("Taijiquan"))
            return "Taijiquan_";
                
        if(eventName.equalsIgnoreCase("Taiji Weapon"))
            return "Taiji_Weapon_";
                
        if(eventName.equalsIgnoreCase("Tradional Barehand"))
            return "Tradional_Barehand_";
                
        if(eventName.equalsIgnoreCase("Tradional Weapon"))
            return "Tradional_Weapon_";
        return null;
    }
    */
    
}
